﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace ARchGL.Platform.Electrocar.Core.Mappings
{
    public class ProjectsMapping : IEntityTypeConfiguration<Projects>
    {
        public void Configure(EntityTypeBuilder<Projects> builder)
        {
            builder.Property(p => p.Name).HasMaxLength(50);
            builder.Property(p => p.Code).HasMaxLength(50);
            builder.Property(p => p.Url).HasMaxLength(255);
            builder.Property(p => p.CompanyName).HasMaxLength(100);

            builder.Property(p => p.EngineDescription).HasMaxLength(2000);
            builder.Property(p => p.GearboxDescription).HasMaxLength(2000);
        }
    }
}
